package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiOperationSupport;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "actor")
@Accessors(chain = true)
public class Actor implements Serializable {
    /**
     * 演员id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 演员名
     */
    @TableField(value = "name")
    @NotEmpty(message = "不能为空")
    private String name;

    /**
     * 演员照片
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 添加时间
     */
    @TableField(value = "insert_time")
    private Date insertTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 添加人
     */
    @TableField(value = "insert_admin_id")
    private Integer insertAdminId;

    /**
     * 修改人
     */
    @TableField(value = "update_admin_id")
    private Integer updateAdminId;

    /**
     * 演员/导演
     */
    @TableField(value = "role")
    private String role;

    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_NAME = "name";

    public static final String COL_PIC = "pic";

    public static final String COL_SORT = "sort";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_INSERT_ADMIN_ID = "insert_admin_id";

    public static final String COL_UPDATE_ADMIN_ID = "update_admin_id";

    public static final String COL_ROLE = "role";

    public static final String COL_ENABLE = "enable";
}